package com.yyc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yyc.dao.UserDao;
import com.yyc.pojo.TblUser;
import com.yyc.service.UserService;

@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserDao userDao;

	public List<TblUser> selectAllUser() {
		List<TblUser> list = userDao.findAll();
		return list;
	}

	public void addUser(TblUser user) {
		userDao.save(user);
	}
	
	

}
